<template>
	<view><menuBox :menuInfo="menuInfo"></menuBox></view>
</template>

<script>
import menuBox from '../../wxcomponents/commonLayout/menu.vue';
export default {
	data() {
		return {
			menuInfo: {
				base: {
					menuProp: ['name', 'time'],
					tit: [],
					class:'twoCol'
				},
				list: []
			}
		};
	},
	onShow() {
		this.getList();
	},
	methods: {
		async getList() {
			let resp = await this.$http.post({
				url: '/oa/sysMessage/list'
			});
			
			this.menuInfo.list = resp.result.map(item => {
				let dataStr = JSON.stringify({auditNo:item.auditNo, auditType: item.auditType})
				return {
					url: `xtxxDetail?data=${dataStr}`,
					name: item.title,
					time: item.auditDate,
					data: item
				};
			});
		}
	},
	components: {
		menuBox
	}
};
</script>

<style></style>
